import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/manage'

/*企业账户信息-新增*/
const getSaveEntAccount = (params)=>postAction("/businessAccount/saveEntAccount",params);

/*企业账户信息-认证*/
const getEntAccountVerifyt = (params)=>postAction("/businessAccount/entAccountVerify",params);

/*账户所在企业详情查询*/
const getEqueryEntDetail = (params)=>getAction("/ent/info/queryEntDetail",params);

/*账户信息*/
const getBusinessAccountInfo = (params)=>postAction("/businessAccount/info",params);

/*资金账户信息*/
const getFundSubAccountInfo = (params)=>postAction("/qsb/fund/sub/accountInfo",params);

/*渠道账户信息-新增*/
const getSaveChannelAccount = (params)=>postAction("/businessAccount/saveChannelAccount",params);

/*渠道账户信息-认证*/
const getChannelAccountVerify = (params)=>postAction("/businessAccount/channelAccountVerify",params);

/*账户信息(渠道、企业)-修改*/
const getBusinessAccountUpdateAccount = (params)=>postAction("/businessAccount/updateAccount",params);

/*企业充值-列表*/
const getBusinessAccountEntList = (params)=>postAction("/businessAccount/ent/list",params);

/*企业待支付-列表*/
const getPayUnpaidList = (params)=>postAction("/qsb/order/pay/unpaid/list",params);

/*企业新待支付-列表*/
const getPayV2UnpaidList = (params)=>postAction("/qsb/order/pay/v2/unpaid/list",params);

/*企业新支付处理中-列表*/
const getPayV2DuringPaidList = (params)=>postAction("/qsb/order/pay/v2/duringPaid/list",params);
/*资金账户余额*/
const getFundSubBalance = (params)=>postAction("/qsb/fund/sub/balance",params);

/*支付订单-交易记录*/
const getOrderPayPaidList = (params)=>postAction("/qsb/order/pay/paid/list",params);

/*支付订单-交易记录*/
const getOrderPayV2PaidList = (params)=>postAction("/qsb/order/pay/v2/paid/list",params);


/*勤税宝结算-生成支付单*/
const getOrderPayV2Settle = (params)=>postAction("/qsb/order/pay/v2/settle",params);

/*勤税宝-购物车*/
const getOrderPayV2ShoppingCart = (params)=>postAction("/qsb/order/pay/v2/shopping/cart",params);

/*待支付订单-收银台*/
const getOrderPayUnpaidCashier = (params)=>postAction("/qsb/order/pay/unpaid/cashier",params);

/*待支付订单-收银台*/
const getQsbOrderPayV2Cashier = (params)=>postAction("/qsb/order/pay/v2/cashier",params);


/*待支付订单-支付*/
const getOrderPayUnpaidPay = (params)=>postAction("/qsb/order/pay/unpaid/pay",params);

/*待支付订单-新支付*/
const getOrderPayV2Pay = (params)=>postAction("/qsb/order/pay/v2/pay",params);

/*设置支付密码*/
const getSetPaypwd = (params)=>postAction("/payauth/setPaypwd",params);

/*设置支付密码*/
const getSendSmsCaptcha = (params)=>getAction("/payauth/sendSmsCaptcha",params);

/*账户变动记录*/
const getFundAccountQueryChangeInfo = (params)=>postAction("/qsb/fund/account/query/change/info",params);

//获取当前登录渠道的委托代征协议类型(1总包；2分包，3总包+分包)
const getProtocolType = (params)=>postAction("/qsb/channel/getChannelInfo/protocolType",params);

/*订单支付结果查询*/
const getOrderPayManualResult = (params)=>postAction("/qsb/order/pay/manual/result",params);

/*订单支付结果查询*/
const getQsbOrderPayV2PayStatus = (params)=>postAction("/qsb/order/pay/v2/pay/status",params);


/*提现*/
const getQsbFundWithdraw = (params)=>postAction("/qsb/fund/withdraw",params);
/*提现增加支付密码验证接口*/
const getBusinessAccountIsSetPwd = (params)=>postAction("/businessAccount/isSetPwd",params);

/*勤税宝-支付单撤销*/
const getQsbOrderPayV2PayCancel = (params)=>postAction("/qsb/order/pay/v2/pay/cancel",params);

const getOrderV2ListPage = data => postAction('/qsb/order/v2/listPage', data)
export {
  getSaveEntAccount,
  getEntAccountVerifyt,
  getEqueryEntDetail,
  getBusinessAccountInfo,
  getBusinessAccountUpdateAccount,
  getBusinessAccountEntList,
  getPayUnpaidList,
  getFundSubBalance,
  getOrderPayPaidList,
  getFundSubAccountInfo,
  getOrderPayUnpaidCashier,
  getQsbOrderPayV2Cashier,
  getOrderPayUnpaidPay,
  getSetPaypwd,
  getSendSmsCaptcha,
  getFundAccountQueryChangeInfo,
  getOrderPayManualResult,
  getQsbFundWithdraw,
  getSaveChannelAccount,
  getChannelAccountVerify,
  getProtocolType,
  getBusinessAccountIsSetPwd,
  getPayV2UnpaidList,
  getOrderPayV2ShoppingCart,
  getOrderPayV2Settle,
  getOrderPayV2Pay,
  getQsbOrderPayV2PayCancel,
  getOrderPayV2PaidList,
  getOrderV2ListPage,
  getQsbOrderPayV2PayStatus,
  getPayV2DuringPaidList
}
